﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Studio7i.Dominio.Local>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Index</h2>

    <table>
        <tr>
            <th></th>
            <th>CodLocal</th>
            <th>Nombre</th>
            <th>Direccion</th>
            <th>Distrito</th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Editar", "Editar", new { codigo=item.CodLocal }) %> |
                <%: Html.ActionLink("Ver", "Ver", new { codigo = item.CodLocal })%> |
                <%: Html.ActionLink("Eliminar", "Eliminacion", new { codigo = item.CodLocal })%>
            </td>
            <td>
                <%: item.CodLocal %>
            </td>
            <td>
                <%: item.Nombre %>
            </td>
            <td>
                <%: item.Direccion %>
            </td>
            <td>
                <%: item.Distrito %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Crear", "Creacion") %>
    </p>

</asp:Content>